import {createApp} from 'vue'
import {createPinia} from 'pinia'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import {createI18n} from 'vue-i18n'
import App from './App.vue'
import messages from './locales'

const i18n = createI18n({
    legacy: false, // 明确禁用遗留模式
    locale: 'zh-CN',
    fallbackLocale: 'en',
    messages
})

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(Antd)
app.use(i18n)
app.mount('#app')

